<template>
    <div class="">store的使用{{userInfo.name}}</div>
</template>

<script setup>
import useStoreIndex from '../store/modules/index';
import { storeToRefs } from "pinia";
let oStore = useStoreIndex();
let {userInfo} = storeToRefs(oStore);
oStore.fSetUserInfo({
    name:'李四',
    age:'22'
})
console.log(userInfo)


</script>

<style scoped lang="less"></style>